]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
dnd: Return Clutter.EVENT_STOP instead of true
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Mon, 31 May 2021 00:27:51 +0000 (21:27 -0300)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Mon, 31 May 2021 00:27:51 +0000 (21:27 -0300)
Trivial cleanup.

Clutter.EVENT_STOP is more semantic, and this 'true' is inconsistent
with the 'return Clutter.EVENT_PROPAGATE;' a few lines above.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1866>

js/ui/dnd.js

index 34ed8aefca4ba0e8a119e409b5fd3bec18cad344..252ebb85c3d2d7c1c6bbb062d6d68f79aecfe068 100644 (file)
@@ -518,7 +518,7 @@ var _Draggable = class _Draggable {
             }
         }
 
-        return true;
+        return Clutter.EVENT_STOP;
     }
 
     _pickTargetActor() {